Alex Williamson [Thu, 20 Mar 2008 20:06:46 +0000 (14:06 -0600)]
[IA64] Fix TLB miss behavior with physical mode
The emulation of physical mode will be more precise with this patch.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Thu, 20 Mar 2008 18:35:40 +0000 (12:35 -0600)]
merge with xen-unstable.hg
Keir Fraser [Thu, 20 Mar 2008 18:28:52 +0000 (18:28 +0000)]
ioemu: Fix vnc buffer sharing when linesize != width * depth.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Thu, 20 Mar 2008 17:48:02 +0000 (17:48 +0000)]
minios: get VBD CD/removable/RO info
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 20 Mar 2008 17:47:33 +0000 (17:47 +0000)]
ioemu: improve DMA transfers
by increasing the size of DMA buffers.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 20 Mar 2008 17:47:05 +0000 (17:47 +0000)]
ioemu: IDE should accept SETMULT 0
as upstream qemu now does
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 20 Mar 2008 17:45:00 +0000 (17:45 +0000)]
xend: Fix writing domain's VDI UUID into domain state file.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Thu, 20 Mar 2008 10:48:21 +0000 (10:48 +0000)]
ioemu: Allow VNC buffer sharing when linesize != width * depth
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Thu, 20 Mar 2008 10:47:17 +0000 (10:47 +0000)]
ioemu: Fix non-openGL resize
We can not resize when OpenGL is not enabled.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Thu, 20 Mar 2008 10:46:52 +0000 (10:46 +0000)]
ioemu: Initialize ioport_opaque, ioport_read/write_table to zero
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 16:21:39 +0000 (16:21 +0000)]
stubdom: add C example target
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 16:21:01 +0000 (16:21 +0000)]
stubdom: fix compilation
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 16:20:44 +0000 (16:20 +0000)]
minios: update README
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 16:20:14 +0000 (16:20 +0000)]
minios: Automatically set IP from XenStore information
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 16:19:10 +0000 (16:19 +0000)]
blktap: Fix BSD build failure.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Wed, 19 Mar 2008 16:16:24 +0000 (16:16 +0000)]
AMD IOMMU: Fix up coding style issue in amd iommu files
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 19 Mar 2008 14:13:17 +0000 (14:13 +0000)]
ioemu: fix sdl opengl rendering
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 14:12:12 +0000 (14:12 +0000)]
tapaio build fix
With some combinations of compiler flags (no optimization, -Werror),
the compiler may complain that the function doesn't have a return
statement (even if the function actually just never returns), reported
as bug 1128. This adds a dummy return statement.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Wed, 19 Mar 2008 14:11:22 +0000 (14:11 +0000)]
acpi: hwregs.c only needed on x86.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 19 Mar 2008 14:08:02 +0000 (14:08 +0000)]
x86_emulate: Remove the CPL and IOPL check in the I/O handling code.
The check is already carried out by the processor during VMEXIT, where
that is required.
Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
Keir Fraser [Wed, 19 Mar 2008 14:06:18 +0000 (14:06 +0000)]
x86_emulate: Return X86EMUL_UNHANDLEABLE if mode_iopl() or
mode_ring0() checks cannot be carried out.
Also fix handling of EFLAGS.IF in iret and popf.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 19 Mar 2008 12:41:48 +0000 (12:41 +0000)]
libxc: Remove permute() function from xc_domain_save().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 19 Mar 2008 10:33:13 +0000 (10:33 +0000)]
x86 ACPI sleep: Fix a bug when ACPI registers in System_Memory
Some ACPI registers may be in System_Memory but not System_IO space,
For these machines S3 fails since current Xen use I/O instructions (e.g.
inb(), outb(), etc.) to access ACPI registers. The patch attached fix
the bug by adding GAS (generic address structure) support ported from
Linux, which should also benefit later ACPI activity within Xen.
Signed-off-by: Huacai Chen <huacai.chen@intel.com>
Keir Fraser [Wed, 19 Mar 2008 10:22:49 +0000 (10:22 +0000)]
Intel VTD: Ignore USB RMRR for HVM guest
USB controller RMRR (0xed000 - 0xeffff) conflicts with HVM guest bios
region. Setting identity mapping for it will cover the guest bios
region in p2m table. This causes system crash.
As VT-d spec says, USB controller RMRR is used in case of DMA
performed by a USB controller under BIOS SMM control for legacy
keyboard emulation. Whereas, current guest BIOS doesn't support
emulating stardand Keyboard/mouse, and it also doesn't support SMM
mode. Actually it is no chance to use USB controller RMRR now.
This patch ignores the USB controller RMRR for HVM guest.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Keir Fraser [Wed, 19 Mar 2008 10:21:01 +0000 (10:21 +0000)]
tools: More accurate parsing of pci config.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Keir Fraser [Wed, 19 Mar 2008 10:20:17 +0000 (10:20 +0000)]
xend: Fix and improve default NUMA node selection.
Add the missing condition check and use average value instead of the
sum value of Vcpus pinning cpus on certain node to choose relaxed node.
Signed-off-by: Duan Ronghui <ronghui.duan@intel.com>
Keir Fraser [Wed, 19 Mar 2008 10:18:36 +0000 (10:18 +0000)]
Fix methods in SrvDomain class for inactive managed domains
This patch fixes methods in SrvDomain class for inactive managed
domains. They should use a domain name because inactive managed
domains don't have a domID.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Keir Fraser [Wed, 19 Mar 2008 10:15:01 +0000 (10:15 +0000)]
x86: Avoid dereference of 'struct page_info' for invalid MFNs.
Introduced by my changes to Samuel's transitive-privilege patch.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 19 Mar 2008 00:01:25 +0000 (00:01 +0000)]
ioemu: Improve SDL openGL configure-script detection.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 21:05:47 +0000 (21:05 +0000)]
ia64: Fix ACPI header inclusion into libxc.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Tue, 18 Mar 2008 19:36:43 +0000 (19:36 +0000)]
save/restore: Permute saved memory with 2MB chunk size.
The memory permutation cause a slow down in case of a save/restore
(bug 1143). It works better when the mixing is done with 2MB chunks.
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 19:28:09 +0000 (19:28 +0000)]
ia64: Fix build after ACPI header churn.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 16:15:24 +0000 (16:15 +0000)]
x86: stub domains and page ownership for mapping in dom0
In the case of an ioemu stubdomain with SDL or vnc server running in
dom0, we want to have the stubdomain expose the HVM guest's video RAM
through PVFB.
However, to map the pages from dom0, xenfb uses xc_map_foreign_pages
with the stubdomain ID as domid (since that is what is advertised in
the PVFB protocol, and needed for other parts of the protocol), and
thus get_page_from_l1e() complains because the stubdomain is not the
owner of the pages. In such case, this patch checks that the
stubdomain has privileges on the actual owner of the pages, and then
accept the mapping.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 16:05:24 +0000 (16:05 +0000)]
x86: fix feature availability for PV guests
PV guests should not be allowed to believe features not currently
virtualized (in many cases, requiring special MSRs) are available. Of
course it is bad enough that to work on older hypervisors guests will
still need to special case this, but better fix it now than never.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Tue, 18 Mar 2008 16:02:36 +0000 (16:02 +0000)]
x86: check ModR/M mod bits for CR/DR access insns
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 15:51:19 +0000 (15:51 +0000)]
vfb: Add opengl option
(and replace bogus vncpasswd copy in xenapi_create in the SDL case)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 15:26:35 +0000 (15:26 +0000)]
svm: Reported SS.DPL must equal CPL, as this is assumed by generic HVM
code despite the fact that AMD processors do not always maintain this
invariant.
Based on a bug report and proposed patch by Ben Guthro and Robert
Phillips of Virtual Iron.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 15:23:25 +0000 (15:23 +0000)]
domain_shutdown() needs to vcpu_pause_nosync() rather than directly
incrementing the pause_count field. The latter ensures that the VCPU
gets descheduled --- synchronously in the case of the
currently-running VCPU.
Based on a bug report and proposed patch by Ben Guthro and Robert
Phillips of Virtual Iron.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 15:03:43 +0000 (15:03 +0000)]
p2m: hap enabled/supported fix
Check for per domain hap_enabled rather than hvm_funcs hap_supported,
in case hap has been disabled.
Alleviates problem booting >=4Gig shadow HVM guests on PAE hypervisor
on AMD-V platforms.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Keir Fraser [Tue, 18 Mar 2008 15:00:33 +0000 (15:00 +0000)]
libxc: Variable-size gntdev support
This patch adds the ability to set the number of slots that may be
used for mapping grant references, using the gntdev user-space grant
reference mapping driver.
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
Keir Fraser [Tue, 18 Mar 2008 14:55:36 +0000 (14:55 +0000)]
Update ACPI headers to Linux 2.6.24.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 13:14:26 +0000 (13:14 +0000)]
Xend forgets to write the domain's VDI UUID into the domain state file
once the domain is started (before it's there). Once xend is restarted
it will not know the association between the VBD and VDI anymore due
to the missing UUID. This patch fixes this.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Tue, 18 Mar 2008 13:13:31 +0000 (13:13 +0000)]
stubdom: disable xen_blktap
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 13:11:43 +0000 (13:11 +0000)]
Install missing hvm public headers.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Keir Fraser [Tue, 18 Mar 2008 13:10:57 +0000 (13:10 +0000)]
vmx: fix debugctl handling
I recently realized that the original way of dealing with the DebugCtl
MSR on VMX failed to make use of the dedicated guest VMCS field. This
is fixed by this patch.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Tue, 18 Mar 2008 13:08:30 +0000 (13:08 +0000)]
ioemu: Set subsystem vendor/device for ne2k device model.
From: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:47:58 +0000 (11:47 +0000)]
ioemu: SDL rendering using OpenGL
Add opengl support for rendering the guest framebuffer in the SDL
window. SDL is needed anyway to open the window and handle the
events. Opengl rendering is optional and can be turned off at both
compile time and in the vm configuration file.
Some of the benefits of using opengl are:
- faster rendering, less CPU intensive, especially with good graphic
cards;
- makes the window resizing possible and hardware accelerated, thus
very efficient and smooth;
- allows other optimizations like sharing directly a buffer in vram
with the guest (not yet implemented).
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:40:30 +0000 (11:40 +0000)]
minios: avoid putting trailing \0 in xenstore
xenstore expects to get the exact amount of data, without
the trailing \0.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:39:21 +0000 (11:39 +0000)]
tools: Add PV passthrough PCI device hotplug support.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Keir Fraser [Tue, 18 Mar 2008 11:34:44 +0000 (11:34 +0000)]
Fix domain suspend by xend stop
When I stopped xend by xend stop command, a domain suspend processing
is frequently failed. This patch solves the problem.
Step to reproduce:
1. xm new XXX on_xend_stop="suspend"
2. xm start XXX
3. xend stop
In the xend stop, if the domain suspend processing is slept by
state_updated.wait() of waitForShutdown(), then the domain suspend
processing is not waked up again because state_updated.notifyAll()
of _stateSet() is not executed.
For the reason, processing of _on_domains_changed() is waited by
domains_lock.acquire() because the domain suspend processing is
keeping domains_lock and sleeping. The domain suspend processing
got domains_lock at cleanup_domains().
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Keir Fraser [Tue, 18 Mar 2008 11:32:06 +0000 (11:32 +0000)]
xm: allow non-existent readline module
Let xm work even if Python doesn't have its readline module installed.
Signed-off-by: John Levon <john.levon@sun.com>
Keir Fraser [Tue, 18 Mar 2008 11:31:39 +0000 (11:31 +0000)]
Allow libvirt to specify force, rm_cfg
When doing a 'virsh detach-disk' on a running domain, the disk is not
removed from the configuration file. Allow a caller to specify
whether or not to change the file.
Signed-off-by: Ryan Scott <ryan.scott@sun.com>
Keir Fraser [Tue, 18 Mar 2008 11:29:18 +0000 (11:29 +0000)]
minios: Fix lost events
evtchn_bind_interdomain used to clear any already pending event before
binding a handler, because else the handler may be called before it is
ready. That however leads to missed events, which I had to workaround
for the HVM case.
This changes the semantics of bind_evtchn, and thus of all the
event channel binding functions (bind_virq, evtchn_alloc_unbound,
evtchn_bind_interdomain) into not unmasking the event itself, hence
letting the caller initialize properly before unmasking the port (e.g.
record the port number in an appropriate place).
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:28:14 +0000 (11:28 +0000)]
stubdom: fix select calls after CDROM ejection
by calling qemu_set_fd_handler before closing the fd.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:27:36 +0000 (11:27 +0000)]
stubdom: support save/restore by passing the -loadvm parameter,
letting the stubdomain access the save area, and having it watch the
correct xenstore node.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:27:05 +0000 (11:27 +0000)]
stubdom: add support for reading the command line from the config
file, and merge the dmargs with it in the case of qemu.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:26:43 +0000 (11:26 +0000)]
stubdom: Add support for select() call with NULL arguments.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:26:21 +0000 (11:26 +0000)]
Stubdom: add support for file creation.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:15:20 +0000 (11:15 +0000)]
x86_64: Make VGCF_in_syscall definition available to assembly code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Tue, 18 Mar 2008 11:07:00 +0000 (11:07 +0000)]
Convert XenAPI platform values to appropriate types.
XenAPI defines the platform attribute of a VM as a string-string map
but in various code paths in xend the platform entries are expected to be
another type, e.g. int. This patch defines the types of each platform
entry and converts the entry values to appropriate type when new domU
configuration is created via XenAPI.
Alternatively the values could be casted to appropriate type when used
but seems prudent to do the conversion when domU configuration is
created.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Keir Fraser [Tue, 18 Mar 2008 11:06:26 +0000 (11:06 +0000)]
Set device model when creating rfb console via XenAPI
When creating a rfb console via XenAPI the device model is not being
set to qemu-dm, resulting in no pvfb since qemu-dm is not launched
when domU is started. This patch sets device model when a rfb console
is created via XenAPI.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Keir Fraser [Tue, 18 Mar 2008 11:05:53 +0000 (11:05 +0000)]
Initialization of new domU config options via XenAPI
Many of the new domU config options related to hvm guests (e.g. hpet,
rtc_timeoffset, etc.) are not initialized with default values via
XenAPI, which prevents starting an hvm domU created through XenAPI.
This patch ensures the new options are set with appropriate default
values in XendConfig platform sanity check.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Keir Fraser [Tue, 18 Mar 2008 11:04:20 +0000 (11:04 +0000)]
Add periodic fflush to xentop batch mode.
From: Yusuke KANEKI <Kaneki.Yusuke@ea.MitsubishiElectric.co.jp>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 11:02:00 +0000 (11:02 +0000)]
Each TAP/TUN device name for a HVM guest includes its domain ID.
The TAP/TUN devices are used for connection to a HVM domain, but there
is no relationship between each name of the devices and its domain
ID. This patch assigns a HVM domain ID to each TAP/TUN device name.
Signed-off-by: MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>
Keir Fraser [Tue, 18 Mar 2008 10:59:46 +0000 (10:59 +0000)]
Fix xc_save compile
Add missing <err.h> include.
Signed-off-by: John Levon <john.levon@sun.com>
Keir Fraser [Tue, 18 Mar 2008 10:58:47 +0000 (10:58 +0000)]
Use ioemu block drivers through blktap.
Add support for a tap:ioemu pseudo driver. Devices using this driver
won't use tapdisk (containing the code duplication) any more, but will
connect to the qemu-dm of the domain. In this way no working
configuration should be broken right now as you can still choose to
use the tapdisk drivers.
Signed-off-by: Kevin Wolf <kwolf@suse.de>
Keir Fraser [Tue, 18 Mar 2008 10:53:20 +0000 (10:53 +0000)]
hvm: Remove incorrect comment from public save header.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 10:51:20 +0000 (10:51 +0000)]
x86: Clean ups and fixes after bitops changes.
Firstly, the vlapic bitops need fewer casts.
Secondly, the minimum-alignment check is unnecessary and also breaks
the build (page_info's type_info field has alignment == 1). It is an
unnecessary check because bitops operate on only one bit of the word
they access, so lack of atomicity of the read and writeback does not
matter -- furthermore the LOCKed variants are guaranteed atomic
regardless of alignment.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Tue, 18 Mar 2008 10:05:56 +0000 (10:05 +0000)]
svm: Fix the build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Mon, 17 Mar 2008 11:39:50 +0000 (11:39 +0000)]
SVM: handle page faults in emulated instruction fetches
Deal with failures in hvm_copy_from_guest_virt when fetching
instructions in the various SVM emulation paths. Since we know that
the instruction was fetchable by the hardware, we can usually just
return from the VMEXIT and try again; whatever caused us to fail will
cause the hardware to fail next time and we'll get the correct exit
code.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Keir Fraser [Mon, 17 Mar 2008 11:18:06 +0000 (11:18 +0000)]
x86 numa: Fix the overflow of physical addresses.
If memory address >4G, the address will overflow in some NUMA code if
using unsigned long to statement a physical address in PAE arch.
Replace "unsigned long" with paddr_t to avoid overflow.
Signed-off-by: Duan Ronghui <ronghui.duan@intel.com>
Keir Fraser [Mon, 17 Mar 2008 11:16:08 +0000 (11:16 +0000)]
hvm bios: Fix EDD pointer in int 13h, fn 48h BIOS call return buffer
I ran into this when I was reviewing what was outstanding to get
NetWare to run fully virtualized.
The BIOS emulator code has the segment and offset backward in the
returned buffer for the int 13h, fn 48h BIOS call.
Signed-off-by: Bruce Rogers <brogers@novell.com>
Keir Fraser [Mon, 17 Mar 2008 11:02:40 +0000 (11:02 +0000)]
Add -fno-optimize-sibling-calls to debug CFLAGS. Also get rid of ?=
assignment to CFLAGS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Mon, 17 Mar 2008 10:58:29 +0000 (10:58 +0000)]
Remove deprecated and unused features from LaTeX source.
Signed-off-by: Bastian Blank <waldi@debian.org>
Keir Fraser [Mon, 17 Mar 2008 10:58:12 +0000 (10:58 +0000)]
Clean up xenstore Makefile.
Signed-off-by: Bastian Blank <waldi@debian.org>
Keir Fraser [Mon, 17 Mar 2008 10:57:59 +0000 (10:57 +0000)]
Clean up blktap Makefiles.
Signed-off-by: Bastian Blank <waldi@debian.org>
Keir Fraser [Mon, 17 Mar 2008 10:45:24 +0000 (10:45 +0000)]
Move iommu code to arch-generic locations, and also clean up some VT-d code.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Keir Fraser [Sun, 16 Mar 2008 14:11:34 +0000 (14:11 +0000)]
x86: Allow bitop functions to be applied only to fields of at least 4
bytes. Otherwise the 'longword' processor instructions used will
overlap with adjacent fields with unpredictable consequences.
This change requires some code fixup and just a few casts (mainly when
operating on guest-shared fields which cannot be changed, and which by
observation are clearly safe).
Based on ideas from Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Alex Williamson [Fri, 14 Mar 2008 21:07:45 +0000 (15:07 -0600)]
[IA64] Raise a fault with unimplemented physical address
An unimplemented data fault or an unimplemented instruction trap
should be raised with unimplemented physical address.
Also some cleanups.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Fri, 14 Mar 2008 21:02:12 +0000 (15:02 -0600)]
[IA64] vmx_init_env must be called on every processor
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Alex Williamson [Fri, 14 Mar 2008 21:00:27 +0000 (15:00 -0600)]
[IA64] Cleanup: remove useless commented lines.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Fri, 14 Mar 2008 20:57:58 +0000 (14:57 -0600)]
[IA64] Cleanup vcpu_set_psr_l()
Remove redundant bit setting.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Keir Fraser [Mon, 10 Mar 2008 22:51:57 +0000 (22:51 +0000)]
x86: Reserve 32 bits for each of acpiid and apicid in new phys_id vcpu hypercall.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Alex Williamson [Mon, 10 Mar 2008 17:55:40 +0000 (11:55 -0600)]
[IA64] Remove bogus hypercall arg
privcmd_hypercall_t only has 5 args. This causes a build failure
with gcc-4.3. Fixes bugzilla #1186.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Alex Williamson [Mon, 10 Mar 2008 17:52:25 +0000 (11:52 -0600)]
[IA64] Initialize guest register to valid value
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Alex Williamson [Mon, 10 Mar 2008 17:50:59 +0000 (11:50 -0600)]
[IA64] Switch to VPS save/restore for HVM
Replace pal_vp_save/restore with vps_save/restore.
The latter have better performance.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Alex Williamson [Mon, 10 Mar 2008 17:27:42 +0000 (11:27 -0600)]
[IA64] Additional user of pa_clear_uc()
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Alex Williamson [Mon, 10 Mar 2008 17:22:57 +0000 (11:22 -0600)]
[IA64] Avoid multiple calls to lookup_domain_mpa for io emulation
__gpfn_is_io macro hides a call to lookup_domain_mpa. This patch avoids
multiple call to lookup_domain_mpa during io emulation.
Remove __gpfn_is_io and __gpfn_is_mem.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Mon, 10 Mar 2008 17:10:46 +0000 (11:10 -0600)]
[IA64] get_wallclock also returns NOW value.
At least sched_poll hypercall needs to have access to the NOW value
(time since boot). This patch makes NOW available from sioemu.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Mon, 10 Mar 2008 17:08:11 +0000 (11:08 -0600)]
[IA64] Prepare sioemu for SMP and save & restore.
Use macros instead of constants.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Mon, 10 Mar 2008 16:58:45 +0000 (10:58 -0600)]
[IA64] Automatic xenheap sizing
Automatically bump up the size of xenheap to account for the range
used by the boot allocator. On systems like the HP superdome, when
cell local memory is enabled, the physical address space used for
memory gets much larger, causing the alloc_bitmap to slightly exceed
the default 64MB xenheap. This is easily detected and prevented.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Alex Williamson [Fri, 7 Mar 2008 20:26:40 +0000 (13:26 -0700)]
[IA64] Fix io access from the inside of UC physical address
I/O access from the inside of UC physical address causes a panic on HVM.
Singed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Fri, 7 Mar 2008 20:11:35 +0000 (13:11 -0700)]
[IA64] Hand optimize for hyperprivop
This patch slightly optimizes hyperprivop emulation especially hyper_rfi.
It shows about 2% faster in fstat system call on dom0.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Fri, 7 Mar 2008 20:09:47 +0000 (13:09 -0700)]
[IA64] Remove GPFN_INV_MASK
This slightly simplify code and frees a pte bit.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Fri, 7 Mar 2008 19:44:26 +0000 (12:44 -0700)]
[IA64] Create a vlsapic - viosapic interface
This patch removes duplicated code and create a vlsapic function to
inject any interruption. Slightly simplifies vlsapic.
It also removes useless irq_save/restore around atomic updates.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Fri, 7 Mar 2008 19:26:27 +0000 (12:26 -0700)]
[IA64] Stop collision chain search after match is found
No need to continue to search collision chain after one is found
since guest TLB can't have any overlap.
Signed-off-by: Dong Yaozu <eddie.dong@intel.com>
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Keir Fraser [Wed, 5 Mar 2008 11:18:25 +0000 (11:18 +0000)]
Remove hard tabs from Xen source file.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 5 Mar 2008 11:17:50 +0000 (11:17 +0000)]
docs: Remove 'hap' boot parameter from the user manual.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 5 Mar 2008 11:16:32 +0000 (11:16 +0000)]
x86 hvm: Remove global 'hap' boot parameter now that their is a
per-domain configuration option.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Keir Fraser [Wed, 5 Mar 2008 11:10:29 +0000 (11:10 +0000)]
ioemu: Let the USB tablet reach the far bottom and right pixels
by fixing divisions / multiplications into using width-1.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>